{% extends 'index.html' %}
{% load crm_tags %}
{% block pg-content %}
    <form class="form-horizontal" method="post">
    {% csrf_token %}
        <div class="form-group">
            <label class="control-label col-lg-2">客户</label>
            <div class="col-lg-2" style="margin-top: 7px">{{ enrollment.customer.name }}</div>
        </div>
        <div class="form-group">
            <label class="control-label col-lg-2">所报课程</label>
            <div class="col-lg-2" style="margin-top: 7px">{{ enrollment.enrolled_class.course.name }}</div>
        </div>
        <div class="form-group">
            <label class="control-label col-lg-2">缴费金额</label>
            <div class="col-lg-2">
                <input name="payment_amount" class="form-control" type="text" placeholder="最低500元"/>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-lg-2">课程顾问</label>
            <div class="col-lg-2" style="margin-top: 7px">{{ enrollment.consultant.name }}</div>
        </div>
        <div class="form-group">
            <label class="control-label col-lg-2">已缴费金额</label>
            <div class="col-lg-2" style="margin-top: 7px">{% render_total_payment enrollment %}元</div>
        </div>
        <div class="form-group">
            <div class="col-lg-offset-1" style="color: red;">{{ error_msg }}</div>
        </div>
        <div class="form-group">
            <div class="col-lg-2 col-lg-offset-3">
                <input type="submit" class="btn btn-success" value="提交"/>
            </div>
        </div>

    </form>

{% endblock %}